package com.wuxuehua.myapp.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * Created by Administrator on 2017/10/21 0021.
 */
public class MyTaskListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        String transactor = (String) delegateTask.getVariable("transactor");
        if (transactor != null && !transactor.equals("")){
            delegateTask.setAssignee(transactor);//设置办理人
            System.out.println("设置办理人:"+transactor);
        }
        System.out.println("我的监听器******我的监听器*****我的监听器***我的监听器****我的监听器****我的监听器********我的监听器****");
    }
}
